Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: remove common.fileExists() #22151

Closed
wants to merge 2 commits into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Aug 6, 2018

common.fileExists() can be replaced with fs.existsSync().

fs.existsSync() was undeprecated in Node.js 6.8.0.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

common.fileExists() can be replaced with fs.existsSync().
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Aug 6, 2018
@Trott
Copy link
Member Author

Trott commented Aug 6, 2018

Copy link

@fesebuv fesebuv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me, but I would advice to double check why some tests are failing.

@Trott
Copy link
Member Author

Trott commented Aug 6, 2018

Copy link
Member

@ChALkeR ChALkeR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if tests pass.

@targos
Copy link
Member

targos commented Aug 6, 2018

git grep fileExists shows it's still used in test/common/index.mjs.

fileExists,

@Trott
Copy link
Member Author

Trott commented Aug 6, 2018

CI with @targos's comment addressed: https://ci.nodejs.org/job/node-test-pull-request/16231/

Trott added a commit to Trott/io.js that referenced this pull request Aug 8, 2018
common.fileExists() can be replaced with fs.existsSync().

PR-URL: nodejs#22151
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
@Trott
Copy link
Member Author

Trott commented Aug 8, 2018

Landed in 41ae423

@Trott Trott closed this Aug 8, 2018
@vsemozhetbyt
Copy link
Contributor

vsemozhetbyt commented Aug 8, 2018

Strangely, we have CI fails now due to this test:

assert(common.fileExists(file));

See #22104 (comment)

@richardlau
Copy link
Member

Strangely, we have CI fails now due to this test

That test was added to the codebase in between the last CI for this PR (2 days ago) and it landing today.

richardlau added a commit to richardlau/node-1 that referenced this pull request Aug 8, 2018
test-trace-event-promises.js was added to the codebase between the last
CI for nodejs#22151 and it landing.

Refs: nodejs#22151
@richardlau
Copy link
Member

Fix for the additional test: #22200

MylesBorins pushed a commit that referenced this pull request Aug 8, 2018
test-trace-event-promises.js was added to the codebase between the last
CI for #22151 and it landing.

PR-URL: #22200
Refs: #22151
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
@Trott
Copy link
Member Author

Trott commented Aug 8, 2018

Oops! Add this to the list of reasons to get https://github.com/nodejs/commit-queue happening. @nodejs/commit-queue

targos pushed a commit that referenced this pull request Aug 11, 2018
test-trace-event-promises.js was added to the codebase between the last
CI for #22151 and it landing.

PR-URL: #22200
Refs: #22151
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
targos pushed a commit that referenced this pull request Aug 11, 2018
common.fileExists() can be replaced with fs.existsSync().

PR-URL: #22151
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
@refack
Copy link
Contributor

refack commented Sep 3, 2018

@Trott Trott deleted the existsSync branch January 13, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.